//
//  UIView+Extend.h
//  SmallElephant
//
//  Created by dev on 2023/2/10.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class NavigationController;

@interface UIView (Extend)

- (void)addSubview:(UIView *)view style:(NSString*)style;

- (void)addSubview:(UIView *)view style:(NSString*)style applyLayoutPreservingOrigin:(BOOL)applyLayoutPreservingOrigin;

- (void)applyStyle;

- (void)applyStyle:(NSString*)style;

- (void)applyStyle:(NSString*)style applyLayoutPreservingOrigin:(BOOL)applyLayoutPreservingOrigin;

- (NavigationController*)getRootController;

- (void)addDashedBorderToView:(UIColor *)color andLineWidth:(CGFloat)lineWidth;

@end

NS_ASSUME_NONNULL_END
